package com.hopedove.net

sealed class ApiCallResult<T>(
    val data: T? = null,
    val message: String? = null
) {

    class Success<T>(data: T) : ApiCallResult<T>(data)
    class Error<T>(noData: T? = null, val error: String) : ApiCallResult<T>(message = error)

}